package com.lucenex.core;

import org.apache.lucene.analysis.miscellaneous.PerFieldAnalyzerWrapper;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.search.IndexSearcher;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

/**
 * 配置类
 * @author zxw
 *
 */
@Builder
public class LuceneXConfig {
	
	/**
	 * 索引目录
	 */
	@Getter
	@Setter
	private String indexPath;
	
	/**
	 * 高亮控制
	 */
	@Getter
	@Setter
	private boolean highlight;
	
	/**
	 * 写源
	 */
	@Getter
	@Setter
	private IndexWriter writer;
	
	/**
	 * 读源
	 */
	@Getter
	@Setter
	private IndexSearcher searcher;
	
	/**
	 * 分词器
	 */
	@Getter
	@Setter
	private PerFieldAnalyzerWrapper analyzer;
	

}
